package com.newlink.building.common_base.activities

import android.view.View
import com.newlink.building.common_base.R
import com.newlink.building.common_base.base.NL_BaseActivity
import com.newlink.building.common_base.databinding.ActivityLicenseBinding

/**
 * @Author: Jake
 * @Date: 2023-03-14
 * @Description: 用户协议与隐私政策
 */
class NL_LicenseActivityNL : NL_BaseActivity() {
    private lateinit var mBinding: ActivityLicenseBinding
    override fun attachLayoutRes(): View {
        mBinding = ActivityLicenseBinding.inflate(layoutInflater)
        return mBinding.root
    }

    override fun initData() {
        if (intent.action.equals("0")) {
            mBinding.licenseTitleView.setText(R.string.user_license_title)
            mBinding.licenseContent.text = resources.getString(R.string.user_license)
        } else {
            mBinding.licenseTitleView.setText(R.string.privacy_policy_title)
            mBinding.licenseContent.text = resources.getString(R.string.privacy_policy)
        }
    }

    override fun initView() {
        mBinding.licenseBackBtn.setOnClickListener {
            this.finish()
        }
    }

}